package com.ljdemo.wecompose

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel

class WeViewModel: ViewModel() {
    // 使用 by mutableStateOf 实现响应式编程，变量被改变时，自动刷新ui
    var selectedTab by mutableStateOf(0) //默认选中第一个，选中标志
}